package com.techsoul.common.core.pojo.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

import java.util.Date;
import java.util.List;

/**
 * 分类 Vo
 * 
 * @author liuen
 * @date 2020-12-14
 */
@Data
@Accessors(chain = true)
public class CategoryVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @ApiModelProperty("子节点列表")
    private List<CategoryVo> children;

    @ApiModelProperty("模板名称")
    private String templateName;

    @ApiModelProperty("ID（人为编码，唯一性）")
    private String id;

    @ApiModelProperty("PID，父级编号")
    private String pid;

    @ApiModelProperty("祖级ID集合")
    private String ancestorIds;

    @ApiModelProperty("祖级名称集合")
    private String ancestorNames;

    @ApiModelProperty("分类名称")
    private String categoryName;

    @ApiModelProperty("分类全称")
    private String categoryFullName;

    @ApiModelProperty("模板ID")
    private String templateId;

    @ApiModelProperty("是否显示")
    private String isShow;

    @ApiModelProperty("是否导航")
    private String isMenu;

    @ApiModelProperty("商品数量")
    private Long goodsNum;

    @ApiModelProperty("层次级别，根为0")
    private Integer treeLevel;

    @ApiModelProperty("是否为叶子节点")
    private String isLeaf;

    @ApiModelProperty("排序")
    private Integer treeSort;

    @ApiModelProperty("分类状态")
    private String status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否有效（数据字典sys_yn_type，默认1-是）")
    private String isValid;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("创建人名称")
    private String createByName;

    @ApiModelProperty("更新人名称")
    private String updateByName;

    @ApiModelProperty("图片")
    private String image;

}
